package com.system.mapper;

import com.system.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.Set;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author zfc
 * @since 2023-04-20
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 根据用户名查询该用户的角色
     * @param username
     * @return
     */
    Set<String> selectAllRoleNamesByUsername(String username);
}
